{% extends "skeleton.html" %}
{% import "doc/macros.html" as m %}

{% block header %}
  {{m.html_header(resource_version)}}
{% endblock %}
{% block pagetitle %}Documentation &bull; Delete{% endblock %}
{% block title %}Delete Document{% endblock %}

{% block maincontent %}
  <section class="content delete-content">
    <fieldset>
      <legend>Revert to revision</legend>
      <p>Are you sure you want to revert to this revision of the page?</p>
      <blockquote>
        <h2>Slug: {{page.slug}}</h2>
        <h3>{{page.title}}</h3>
        <p>{{m.profile_link(profiles[revision.user.user_id()])}}
        <time datetime="{{revision.date|date_std}}">{{revision.date|date_std}}</time></p>
      </blockquote>
      <form action="/doc/_/revert" method="post">
        <input type="hidden" name="slug" value="{{page.slug}}">
        <input type="hidden" name="key" value="{{revision.key}}">
        <input type="submit" value="Revert">
      </form>
    </fieldset>
  </section>
{% endblock %}
